package com.smart.member.service;

import com.smart.common.vo.ResponseResult;
import com.smart.member.common.reqeust.MemberRequestParams;
import com.smart.member.entity.Member;

public interface MemberService {
    ResponseResult<String> code(String phone);

    int register(MemberRequestParams member);

    Member getMemberInfo(String username);

    Member login(String username, String code);

    /**
     * 通过用户名 邮箱 用户名 查找会员信息
     *
     * @param type
     * @param username
     * @return
     */
    Member findMember(String type, String username);

}
